import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./plugins/element.js";
import "element-ui/lib/theme-chalk/index.css"; // 默认主题
// import './assets/css/theme-green/index.css'; // 浅绿色主题
Vue.config.productionTip = false;

router.beforeEach((to, from, next) => {
  document.title = `${to.meta.title} | 分布式调度`;
  if (to.path == "/login") {
    next();
  } else {
    next();
  }
});
var vue=new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
export default vue